﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace S.Organization.API.Application.Command.SheepFarmCommand
{
    public class AddSheepFarmCommand : IRequest<int>
    {


        /// <summary>
        /// 主键ID
        /// </summary> 
        public int SheepFarmId { get; set; }

        /// <summary>
        /// 羊场编码
        /// </summary>
        [StringLength(50)]
        public string? FarmNumber { get; set; }

        /// <summary>
        /// 羊场全程
        /// </summary>
        [StringLength(50)]
        public string? FarmName { get; set; }

        /// <summary>
        /// 羊场简称
        /// </summary>
        [StringLength(50)]
        public string? FarmAbbreviation { get; set; }

        /// <summary>
        /// 羊场规模
        /// </summary>
        [StringLength(50)]
        public string? FarmScale { get; set; }

        /// <summary>
        /// 建账日期
        /// </summary>
        public DateTime AccountsDate { get; set; }

        /// <summary>
        /// 管负责人
        /// </summary>
        [StringLength(50)]
        public string? Principal { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [StringLength(500)]
        public string? DetailedAddress { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [StringLength(500)]
        public string? SheepAddress { get; set; }

        /// <summary>
        /// 管理部门
        /// </summary>
        [StringLength(50)]
        public string? Department { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 状态（是否启用）
        /// </summary>
        public bool FarmState { get; set; }

    }
}
